package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class TPostBase{
	boolean[] modified=new boolean[7];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public TPostBase(){}
	public TPostBase(java.lang.Integer userId,java.lang.Integer postId,java.lang.Integer folderId,java.lang.Integer categoryId,java.util.Date postTime,java.util.Date lastReplyTime,java.lang.Long state){
		setUserId(userId);
		setPostId(postId);
		setFolderId(folderId);
		setCategoryId(categoryId);
		setPostTime(postTime);
		setLastReplyTime(lastReplyTime);
		setState(state);
	}
	public void setUserId(java.lang.Integer userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[0] =true;
		}
	}
	public java.lang.Integer getUserId(){
		return (java.lang.Integer)get("userId");
	}
	public void setPostId(java.lang.Integer postId){
		if(postId!=null) {
			set("postId",postId);
			this.modified[1] =true;
		}
	}
	public java.lang.Integer getPostId(){
		return (java.lang.Integer)get("postId");
	}
	public void setFolderId(java.lang.Integer folderId){
		if(folderId!=null) {
			set("folderId",folderId);
			this.modified[2] =true;
		}
	}
	public java.lang.Integer getFolderId(){
		return (java.lang.Integer)get("folderId");
	}
	public void setCategoryId(java.lang.Integer categoryId){
		if(categoryId!=null) {
			set("categoryId",categoryId);
			this.modified[3] =true;
		}
	}
	public java.lang.Integer getCategoryId(){
		return (java.lang.Integer)get("categoryId");
	}
	public void setPostTime(java.util.Date postTime){
		if(postTime!=null) {
			set("postTime",postTime);
			this.modified[4] =true;
		}
	}
	public java.util.Date getPostTime(){
		return (java.util.Date)get("postTime");
	}
	public void setLastReplyTime(java.util.Date lastReplyTime){
		if(lastReplyTime!=null) {
			set("lastReplyTime",lastReplyTime);
			this.modified[5] =true;
		}
	}
	public java.util.Date getLastReplyTime(){
		return (java.util.Date)get("lastReplyTime");
	}
	public void setState(java.lang.Long state){
		if(state!=null) {
			set("state",state);
			this.modified[6] =true;
		}
	}
	public java.lang.Long getState(){
		return (java.lang.Long)get("state");
	}
}
